package com.weharvest.edu.enums;

import lombok.Data;

@Data
public class CommonEnums {

    public enum flag {
        FLAG_AVAILABLE("1", "帐号正常使用"),
        FLAG_NO_AVAILABLE("0", "帐号已经被删除");
        private String code;
        private String msg;

        flag(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public String getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum state {
        STATE_AVAILABLE(1, "帐号正常使用"),
        STATE_NO_AVAILABLE(0, "帐号已经禁用");
        private Integer code;
        private String msg;

        state(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum page {
        DEFAULT_PAGESIZE(10, "默认分页长度"),
        DEFAULT_PAGENO(0, "默认当前分页");
        private Integer code;
        private String msg;

        page(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum password {
        DEFAULT_PASSWORD(123456, "默认密码");
        private Integer code;
        private String msg;

        password(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum number {
        DEFAULT_NUMBER_ZERO(0, "默认数字0"),
        DEFAULT_NUMBER_ONE(1, "默认数字1");
        private Integer code;
        private String msg;

        number(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }


}
